package rpc.provider.consumer;

/**
 * @author: cuiyutian1
 * @date: 2021/9/4 13:25
 * @description:
 */
public class RpcException extends RuntimeException {

    private String errorCode;

    public RpcException(SoaErrorEnum soaErrorEnum){
        super(soaErrorEnum.getMsg());
        this.errorCode = soaErrorEnum.getCode();
    }
}
